package com.wrk._1_语法._04_循环._01_单循环;

import java.util.Scanner;

import static java.lang.Math.*;

public class _010_求平方根 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个大于等于2的整输");
        int num = scanner.nextInt();
        int squareRoot = (int) Math.sqrt(num);
        System.out.println("整输"+num+"的平方根是："+squareRoot);
        scanner.close();
    }
}
